<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function a1(arr) {
            for (let i = 0, j = arr.length - 1; i < j; i++, j--) {
                [arr[i], arr[j]] = [arr[j], arr[i]];
            }
            return arr;
        }
        const b1 = [1, 2, 60, 302, 78, 11, 47];
        const c1 = a1(b1);
        console.log(c1);
    </script>
</body>

</html>